﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DayGroupCodeSetUp.aspx.cs" Inherits="Master_DayGroupCodeSetUp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>Day Group Code Set Up</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContentTop" Runat="Server">
    <h1> Day Group SetUp List </h1>    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="bodyContent" Runat="Server">
        <div class="elements_inner_wrapper">
        <div id="contentBody">
            <div class="section">
                <div class="seperator">
                </div>
                <fieldset class="formouter">           
                        <table cellpadding="3" cellspacing="3" width="100%">                             
                            <tr>
                                <td style="width:180px;height:40px;">
                                        <div class="row_curved" id="div1" style="width:180px;height:40px;" runat="server" >                                             
                                             <label for="<%=chkMonday.ClientID%>" class="mand_red">
                                            <asp:Label runat="server"  Text="Day Lists" ID="Label2"   /></label>                                     
                                        </div>
                                </td>
                                <td>
                                        <div class="row_curved1" id="div11" runat="server" >
                                                <asp:CheckBox ID="chkMonday" runat="server" Text="Monday" />
                                                <asp:CheckBox ID="chkTuesday" runat="server" Text="Tuesday" />
                                                <asp:CheckBox ID="chkWednesday" runat="server" Text="Wednesday" />
                                                <asp:CheckBox ID="chkThursday" runat="server" Text="Thursday" />
                                                <asp:CheckBox ID="chkFriday" runat="server" Text="Friday" />
                                                <asp:CheckBox ID="chkSaturday" runat="server" Text="Saturday" />
                                                <asp:CheckBox ID="chkSunday" runat="server" Text="Sunday" />                                                 
                                        </div>
                                </td>
                            </tr>
                            <tr>
                                    <td style="width:180px;height:100px;">
                                            <div class="row_curved" id="div3" runat="server"  style="width:180px;height:100px;">
                                            <label for="<%=txtDescription.ClientID%>" class="mand_red">
                                            <asp:Label runat="server" Text="Descripation" ID="lblDescription"   /></label>
                                            </div>
                                    </td>
                                    <td>
                                             <div class="row_curved1" id="div4" runat="server" >
                                                <asp:TextBox ID="txtDescription" Width="300px" runat="server" 
                                                 TextMode="MultiLine" Rows="3" Height="100px" />  
                                            </div>
                                    </td>
                            </tr>                            
                            <tr>
                                    <td colspan="2">
                                            <div class="row_curved" style="background-color: #efefef;width: 550px;" id="divButton" runat="server">
                                                <label> &nbsp;</label>
                                                <div class="field" style="width: 900px;">
                                                   <span class="indicator">
                                                     <asp:Button ID="btnSubmit" CssClass="button_normal_submit" Text="Save" ValidationGroup="DayGroupCode"
                                                      OnClientClick="SubmitOnClientClick(this, 'DayGroupCode');" runat="server" OnClick="btnSubmit_Click" />                                                                          
                                                            &nbsp;&nbsp;<asp:Button runat="server" ID="btnNew" OnClientClick="SubmitOnClientClick(this, 'DayGroupCode');"  Text="New" OnClick="btnNew_Click"  CssClass="button_normal_submit" />
                                                        </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divMessage" runat="server">
                                                <label>
                                                    &nbsp;</label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:Label ID="lblMessage" runat="server"></asp:Label>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                    </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <h2>Day Group Code Listing</h2>
                                    <asp:GridView ID="grvDayGroupCode" runat="server" AutoGenerateColumns="False" DataKeyNames="DayGroupCode"
                                        CellPadding="4" Width="550px"  ForeColor="#333333"  GridLines="None" OnSelectedIndexChanged="grvDayGroupCode_SelectedIndexChanged" OnRowDeleting="grvDayGroupCode_RowDeleting">
                                        <RowStyle BackColor="#EFF3FB" />
                                        <Columns>
                                            <asp:BoundField DataField="DayGroupCode" HeaderText="DayGroupCode" InsertVisible="False" Visible="false"
                                                ReadOnly="True" SortExpression="DayGroupCode"/>
                                            <asp:BoundField DataField="DayDescriptionList" HeaderText="Day Description" SortExpression="DayDescriptionList" />
                                            <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />                                                                                    
                                            <asp:CheckBoxField DataField="Status" HeaderText="Status" Visible="false"
                                                SortExpression="Status" />
                                            <asp:BoundField DataField="CreatedDateTime" HeaderText="CreatedDateTime" DataFormatString="{0:dd/MM/yyyy}"
                                                SortExpression="CreatedDateTime" />                                            
                                            <asp:BoundField DataField="ModifiedDateTime" HeaderText="ModifiedDateTime" DataFormatString="{0:dd/MM/yyyy}"
                                                SortExpression="ModifiedDateTime" />
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="lnkbtnEdit" runat="server" CausesValidation="False" CommandName="Select" Text="Edit"></asp:LinkButton> 
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:CommandField ShowDeleteButton="true" ButtonType="Link" />
                                    </Columns>
                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                    <EmptyDataTemplate>
                                        Please Add DayGroup Code Listing.
                                    </EmptyDataTemplate>
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <EditRowStyle BackColor="#2461BF" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                                   <%-- <asp:ObjectDataSource ID="odsDayGroupCode" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" SelectMethod="GetList" 
                                        TypeName="SIS.BLL.DayGroupCodeTableManager" DeleteMethod="Delete" 
                                        DataObjectTypeName="SIS.ENT.DayGroupCodeTable" UpdateMethod="Save">
                                    </asp:ObjectDataSource>
                                     --%>
                                </td>
                            </tr>
                            <tr>
                            <td colspan="2" valign="top">
                                <div>
                                    <asp:ValidationSummary ID="vsDayGroupCode" runat="server" ValidationGroup="DayGroupCode"
                                        ShowSummary="True" HeaderText="Please complete all highlighted fields of the form. Thank you."
                                        CssClass="errorSummary" />  
                                         <asp:Label Visible="false" runat="server" Text="-1" ID="lblDayGroupCode" />                                 
                                </div>
                            </td>
                        </tr>
                       </table>                          
                </fieldset>
              </div>
        </div>
       </div>
        <script type="text/javascript"  language="javascript">             
            SetSumitNormalButtonAttribute(document.getElementById('<%=btnSubmit.ClientID%>'));
            SetSumitNormalButtonAttribute(document.getElementById('<%=btnNew.ClientID%>'));
    </script>
</asp:Content>

